package com.lixueju.security.box.web.mapper;

import com.lixueju.security.box.core.model.AuthMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 储存菜单信息 Mapper 接口
 * </p>
 *
 * @author lixueju
 * @since 2019-11-13
 */
@Repository
public interface AuthMenuMapper extends BaseMapper<AuthMenu> {
    List<AuthMenu> queryAuthMenuListByUserId(@Param("userId") Long userId, @Param("type") Integer type);

    Set<String> queryAllPermission();

    Set<String> queryAllPermissionByUserId(@Param("userId") Long userId);
}
